package cn.relx.org.service.impl;

import cn.relx.basic.service.impl.BaseServiceImpl;
import cn.relx.org.domain.SystemDictionaryDetail;
import cn.relx.org.domain.SystemDictionaryType;
import cn.relx.org.mapper.SystemDictionaryTypeMapper;
import cn.relx.org.service.SystemDictionaryTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional(readOnly = true,propagation = Propagation.SUPPORTS)
public class SystemDictionaryTypeServiceImpl extends BaseServiceImpl<SystemDictionaryType> implements SystemDictionaryTypeService {
    @Autowired
    private SystemDictionaryTypeMapper TypeMapper;

    @Override
    public Long findByTeptsId(Long id) {
        return TypeMapper.findByTeptsId(id);
    }

    @Override
    public List<SystemDictionaryDetail> findDrawer(Long id) {
        return TypeMapper.findDrawer(id);
    }
}
